package com.chentongwei.enums;

/**
 * @author TongWei.Chen 2018-03-02 13:46:44
 * @Description: 响应状态码
 */
public enum ResponseStatusEnum implements IBaseEnum {

    FAILED(1, "系统异常"),
    PARAM_ERROR(3, "参数传递异常")
    ;

    /**
     * 状态码
     */
    private int code;
    /**
     * 消息
     */
    private String msg;

    ResponseStatusEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public int getCode() {
        return this.code;
    }

    @Override
    public String getMsg() {
        return this.msg;
    }
}
